package com.iris.live.services.data.repositories.impl;


import com.iris.live.services.data.repositories.PCUpdateSqlRepository;
import com.iris.live.services.services.PCUpdateService;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by SallyGo on 2016/12/10.
 */
@Repository
public class PCUpdateSqlRepositoryImpl extends BaseRepository implements PCUpdateSqlRepository {

    @Override
    public List getLocalVer(PCUpdateService.GetLocalVer model) {
        String sql = "select * from update_info where platform=:platform";
        Map map = new HashMap();
        map.put("platform", model.ver);
        return this.getList(sql, map);
    }

}
